package ch7.ex1;

public class Upcasting {
	public static void ride(Cycle c){
		c.wheels();
	}
	public static void main(String... args){
		ride(new Cycle());
		ride(new Unicycle());
		ride(new Bicycle());
		ride(new Tricycle());
	}
}